define(()=>{
    return function (cont,res,val){
        // console.log(cont[0]);
        // console.log(res);
        cont[0].innerHTML += `<div index="${res.id}" class="id">
        <input type="checkbox"  ${val.flag ? 'checked' : ''} class="check">
        <div class="five-b">
            <a href="">
                <img src="${res.img}" class="five-b-a" alt="">
            </a>
        </div>
        <div class="five-c">
            
            <span class="five-c-b">     
                <span class="five-c-a">
                    包邮包税
                </span>          
                <span id="name">
                ${res.name}
                </span>
            </span>
            <p class="five-c-c">
                境外发货 &nbsp;&nbsp; <i><img src="./images/ben.png" alt=""></i> &nbsp;&nbsp; 本土发货
            </p>
        </div>
        <p class="five-d">           
        </p>
        <p class="five-e">          
            <span class="eee"></span>
            <br>
                <img src="./images/huodong.png" alt="">      
                <div class="fiveg">
        ${res.price}
        </div>
        </p>
        <div class="five-f">
            
            <input type="number" value="${val.num}" class="setNum">
            
            
        </div>
        <span class="abc">
        ${res.price * val.num}
        </span>
        <div class="five-h">
            <input type="button" value="删除" class="del">
        </div>
    </div>
    <br>`;
    }
})